<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let arr = [11, 22, 9, 44, 55];
       arr.sort(function (a, b) {
        return a - b;
      });
      console.log(arr);

    let result=  arr.filter(itme=>{
        return itme>20;
      })

     console.log(result);
      let res=arr.reverse();
      console.log(res);


      function add(a,b){
        return a+b;
      }
      console.log(add(12,89));

      let obj={
        id:1,
        name:"张三",
        age:18,
        sex:"男"
      }


      for(let k in obj){
       
        console.log(obj[k]);
      }
    </script>
  </body>
</html>
